package com.etc.jdk17;

import java.util.random.RandomGenerator;
import java.util.random.RandomGeneratorFactory;

/**
 * @author: knowno
 * @create: 2024-09-14 15:24
 * @Version 1.0
 **/
public class TestRandom {
    public static void main(String[] args) {
        RandomGeneratorFactory<RandomGenerator> randomGeneratorRandomGeneratorFactory = RandomGeneratorFactory.of("L128X256MixRandom");
        RandomGenerator randomGenerator = randomGeneratorRandomGeneratorFactory.create(System.currentTimeMillis());
        int i = randomGenerator.nextInt(10);
        System.out.println(i);
    }
}
